package com.jch.demo.intro.agent;

import com.jch.demo.intro.ArithmeticCalculator;
import com.jch.demo.intro.ArithmeticCalculatorImpl;

public class TestMain {

    public static void main(String[] args) {
        ArithmeticCalculator calculator = new ArithmeticCalculatorImpl();
        ArithmeticCalculator arithmeticCalculator = (ArithmeticCalculator) CalculatorValidationHandler.createProxy(CalculatorLoggingHandler.createProxy(calculator));
        System.out.println(arithmeticCalculator.add(1,1));
    }

}
